package org.oos.dao.options;

import com.google.api.client.util.Key;

@SuppressWarnings("unused")
public class CheckinOptions extends OptionsMap {

	private static final long serialVersionUID = 3077080400385878526L;

	@Key
	private String siteSlug;

	@Key
	private String latitude;

	@Key
	private String longitude;

	@Key
	private String comment;
	
	@Key
	private String type;
	
	public static enum CheckinRequestType {
		GROUPED, BOTH, FACEBOOK; 
	}

	public void setSiteSlug(String siteSlug) {
		this.siteSlug = siteSlug;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public void setLatitude(Float latitude) {
		this.latitude = latitude.toString();
	}

	public void setLongitude(Float longitude) {
		this.longitude = longitude.toString();
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Override
	public void clear() {
		siteSlug = latitude = longitude = comment = null;
	}
	
	public void setType(CheckinRequestType type) {
		this.type = type.name().toLowerCase();
	}
}
